import request from '@/utils/request'

// 查询违反协议列表
export function listWfxy(query) {
  return request({
    url: '/event/wfxy/list',
    method: 'get',
    params: query
  })
}

export function queryWfxy(query) {
  return request({
    url: '/event/wfxy/query',
    method: 'post',
    data: query
  })
}

// 查询违反协议详细
export function getWfxy(wfxyId) {
  return request({
    url: '/event/wfxy/' + wfxyId,
    method: 'get'
  })
}

// 新增违反协议
export function addWfxy(data) {
  return request({
    url: '/event/wfxy',
    method: 'post',
    data: data
  })
}

// 修改违反协议
export function updateWfxy(data) {
  return request({
    url: '/event/wfxy',
    method: 'put',
    data: data
  })
}

// 删除违反协议
export function delWfxy(wfxyId) {
  return request({
    url: '/event/wfxy/' + wfxyId,
    method: 'delete'
  })
}
